This is now cheap and allows us to avoid more work.
if (GDK_WINDOW_DESTROYED (window))
return;
- if (private->input_only || !GDK_WINDOW_IS_MAPPED (window))
+ if (private->input_only || !private->viewable)
return;
if (!rect)
return;
if (private->input_only ||
- !GDK_WINDOW_IS_MAPPED (window) ||
+ !private->viewable ||
gdk_region_empty (region))
return;
if (base_y_offset)
*base_y_offset = 0;
- if (!GDK_WINDOW_IS_MAPPED (window) || private->input_only)
+ if (!private->viewable || private->input_only)
return gdk_region_new ();
window_get_size_rectangle (window, &visible_rect);